﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>同页面切换</title>
    <style>
        a{
            color: #c01900;
            text-decoration: none;
        }
    </style>
</head>
<body>
<a href="图片切换.html">图片切换</a>
<br/>
<br/>
<div>
    <span onmouseover="pic1()">温文尔雅</span> <span onmouseover="pic2()">可盐可甜</span> <span  onmouseover="pic3()">才华横溢</span>
</div>
<hr/>
<img src="1.jpg"  width="100%" id="pic"/>
<script>
    function pic1(){
        pic.src="1.jpg";
    }
    function pic2() {
        pic.src="2.jpg";
    }
    function pic3() {
        pic.src="3.jpg";
    }
</script>
</body>
</html>